import axios from "axios";
import store from "@/store/index.js";


axios.defaults.baseURL='http://localhost:8090/'
export function getLeadersByIdRequest(context,data){
    axios.get(`/leaders/${data.id}`)
        .then(function (response){
            store.commit('personalPortalModule/SET_Freshmen',response.data.data)
            console.log(response.data.data)

        })
        .catch(function (error){
            console.log(error);
            return 'error'
        });
}